package cn.gok.oa.system.entity;

    import com.baomidou.mybatisplus.annotation.IdType;
    import com.baomidou.mybatisplus.annotation.TableId;
    import java.time.LocalDateTime;
    import com.baomidou.mybatisplus.annotation.TableField;
    import java.io.Serializable;

    import com.baomidou.mybatisplus.annotation.TableLogic;
    import lombok.AllArgsConstructor;
    import lombok.Data;
    import lombok.EqualsAndHashCode;
    import lombok.NoArgsConstructor;
    import lombok.experimental.Accessors;

/**
* <p>
    * 
    * </p>
*
* @author gok
* @since 2022-08-04
*/
    @NoArgsConstructor
    @Data
        @EqualsAndHashCode(callSuper = false)
    @Accessors(chain = true)
    @AllArgsConstructor
    public class TbMenuRole implements Serializable {

    private static final long serialVersionUID = 1L;

            /**
            * id
            */
            @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

            /**
            * 角色id
            */
    private Integer roleId;

            /**
            * 菜单id
            */
    private Integer menuId;

            /**
            * 创建人id
            */
    private Integer createId;

            /**
            * 修改人id
            */
    private Integer modifyId;

            /**
            * 创建时间
            */
    private LocalDateTime createTime;

            /**
            * 修改时间
            */
    private LocalDateTime modifyTime;

            /**
            * 状态
            */
            @TableLogic
        @TableField("STATUS")
    private Integer status;

            /**
            * 备注
            */
    private String remark;

    public TbMenuRole(Integer roleId, Integer menuId) {
        this.roleId = roleId;
        this.menuId = menuId;
    }
}
